﻿using Newtonsoft.Json;

namespace Ecobee.Net
{
	public class FunctionList : ApiObject
	{
		private Selection _selection = null;
		private Function[] _functions = null;

		public FunctionList()
			: base()
		{
		}

		public FunctionList(Selection selection, Function[] functions)
			: base()
		{
			this.Selection = selection;
			this.Functions = functions;
		}

		/// <summary>
		/// Specifies the thermostats to perform the function(s) against.
		/// </summary>
		[JsonProperty(PropertyName = "selection", Order = 2)]
		public Selection Selection
		{
			get
			{
				return _selection;
			}
			set
			{
				_selection= value;
			}
		}

		/// <summary>
		/// 
		/// </summary>
		[JsonProperty(PropertyName = "functions", Order = 1)]
		public Function[] Functions
		{
			get
			{
				return _functions;
			}
			set
			{
				_functions= value;
			}
		}
	}
}
